﻿<?xml version="1.0" encoding="utf-8"?>
<platform>
  <configuration>
    <datas type="hashtable">
      <data uniqueKey="Front.App1.Tomcat.ServiceName" default="TomcatApp1" dev="TomcatApp1_Dev" tst="TomcatApp1_tst" uat="TomcatApp1_uat" />
      <data uniqueKey="Front.App1.Tomcat.HttpListenPort" default="8081" tst="8081" uat="8091" />
      <data uniqueKey="Front.App1.Tomcat.httpsListenPort" default="8443" tst="8443" uat="8444" />
      <data uniqueKey="Groups.Local.Administrators" default="Administrators" />
      <data uniqueKey="Groups.Local.MiddlewareAdmin" default="Middleware Administrators" />
      <data uniqueKey="Users.Local.Adminnistrator" default="myadmin" />
    </datas>
    <dataContexts type="hashtable">
      <dataContext uniqueKey="WebServerTomcat"
                   ApplicationManagementModule="Application.Management"
                   autoDownload="true"
                   winrmport="5985">
        <localGroups type="Collection">
          <group uniquekey="LocalAdministrators" principal="$(Configuration:Groups.Local.Administrators)">
            <members type="collection">
              <member uniquekey="MiddlewareAdmin" principal="$(Group:MiddlewareAdmin.Principal)" />
              <member uniquekey="ManagementAccount" principal="$(User:managementAccount.Principal)" />
            </members>
          </group>
          <group uniquekey="MiddlewareAdmin" principal="$(Configuration:Groups.Local.MiddlewareAdmin)">
            <members type="collection">
              <member uniquekey="ManagementAccount" principal="$(User:managementAccount.Principal)" />
            </members>
          </group>
        </localGroups>


      </dataContext>

      <dataContext uniqueKey="Front.App1.Tomcat"
                   serviceName="$(Configuration:Front.App1.Tomcat.ServiceName)"
                   httpsListenPort="$(Configuration:Front.App1.Tomcat.httpsListenPort)"
                   httpListenPort="$(Configuration:Front.App1.Tomcat.httpListenPort)"
                   StdError="auto"
                   StdOutput="auto"
                   JvmMs="256"
                   JvmMx="512" />

      
      <dataContext uniqueKey="Front.App1.IIS"
                   siteName="NewSiteByDsc" port="8083">

        <runtime uniqueKey="Front.App1.ApplicationPool" />
        
        <siteBindings type="Collection">
          <siteBinding port="8083" protocol="http"
                       ipAddress="$(Server:ipAddresses.Ethernet.ipV4)" />

          <siteBinding port="8082" protocol="https"
                       certificateThumbprint="‎26A0FFFE42E5B46F566972F64C354D7B9A9A2654"
                       certificateStoreName="WebHosting"
                       ipAddress="$(Server:ipAddresses.Ethernet.ipV4)" />

        </siteBindings>
      </dataContext> 

    </dataContexts>
  </configuration>
  <security>
    <groups type="hashtable">
      <group uniquekey="LocalAdministrators" principal="$(Configuration:Groups.Local.Administrators)">
        <members type="collection">
          <member principal="$(Group:MiddlewareAdmin.Principal)" />
        </members>
      </group>
      <group uniquekey="MiddlewareAdmin" principal="$(Configuration:Groups.Local.MiddlewareAdmin)">
        <members type="collection">
          <member principal="$(User:managementAccount.Principal)" />
        </members>
      </group>
    </groups>
    <users type="hashtable">
      <user uniquekey="managementAccount" principal="Users.Local.Adminnistrator" />
    </users>
  </security>

  <serverModels type="hashtable">

    <serverModel uniqueKey="FrontTomcat-StandAlone" template="WebServerTomcat" dataContext="WebServerTomcat">
      <middlewares type="hashtable">
        <middleware uniqueKey="Front.App1" template="Tomcat_7.0_Basic" dataContext="Front.App1.Tomcat" />
        <!--<middleware uniqueKey="Front.App1.IIS" template="IIS7.5" dataContext="Front.App1.IIS" />-->
      </middlewares>
    </serverModel>

    <serverModel uniqueKey="FrontTomcat-Multiple" template="WebServerTomcat" dataContext="WebServerTomcat">
      <middlewares type="hashtable">
        <middleware uniqueKey="Front.App1.IIS.UAT" template="IIS7.5" dataContext="Front.App1.IIS" />
        <middleware uniqueKey="Front.App1.IIS.TST" template="IIS7.5" dataContext="Front.App1.IIS" />
      </middlewares>
    </serverModel>

  </serverModels>

  <servers type="hashtable">
    <server uniqueKey="FrontNode1_DEV" hostname="sans-vga" hostNameFQDN="sans-vga.mshome.net" model="FrontTomcat-StandAlone" environment="DEV" ensure="Present">
      <ipAddresses type="hashtable">
        <ipAddress uniqueKey="Ethernet" ipV4="192.168.1.19" ipV6="fe80::886c:40f3:65c6:70b7%4" />
      </ipAddresses>
    </server>
    <!--<server uniqueKey="FrontNode2_DEV" hostname="pc-nathan" hostNameFQDN="pc-nathan.mshome.net" model="FrontTomcat-StandAlone" environment="DEV">
      <ipAddresses type="hashtable">
        <ipAddress uniqueKey="Ethernet" ipV4="192.168.1.20" ipV6="fe80::886c:40f3:65c6:70b7%4" />
      </ipAddresses>
    </server>-->
  </servers>
</platform>
